package com.mrsltec.springwebandroid;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.mrsltec.springwebandroid.controller.WebPageController;

public class WebPageActivity extends AppCompatActivity {
    private WebPageController controller;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_web_page);
        controller = new WebPageController(this).initView();

        Intent i = this.getIntent();
        String url = i.getExtras().getString("url");
        controller.getWebView().loadUrl(url);
    }
}
